/**
 * 错误提示信息
 * @param {String} errorMessage 错误信息
 * @param {String} title 标题
 */
export const showErrorTips = (errorMessage = '系统错误', title = '提示') => {
	return new Promise((resolve) => {
		uni.showModal({
			title: title,
			content: errorMessage,
			showCancel: false,
			confirmText: '确定',
			success: res => {
				if (res.confirm) {
					resolve('success')
				}
			}
		});
	})
}
